/**
 * Created by Administrator on 2015/11/16 0016.
 */

var mongoskin = require('mongoskin');

/*
 * @des：导出数据库连接模块
 * */
module.exports = (function(){
    //var
        //port = config.port,
        //dbName = config.dbname,
        //userName = config.username,
        //password = config.password,
    var str = "mongodb://localhost:27017/video";

    var option = {
        native_parser: true
    };

    //return mongoskin.db(str, option);
    var db = mongoskin.db(str, option);
    return db;
})();